<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: gpu/containers/include/pcl/gpu/containers/device_memory.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('device__memory_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">device_memory.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Software License Agreement (BSD License)</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Copyright (c) 2011, Willow Garage, Inc.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  All rights reserved.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *  modification, are permitted provided that the following conditions</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  are met:</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *   * Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *     notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   * Redistributions in binary form must reproduce the above</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *     copyright notice, this list of conditions and the following</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *     disclaimer in the documentation and/or other materials provided</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *     with the distribution.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   * Neither the name of Willow Garage, Inc. nor the names of its</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *     contributors may be used to endorse or promote products derived</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *     from this software without specific prior written permission.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *  &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> *  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> *  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> *  ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> *  POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> *  Author: Anatoly Baskeheev, Itseez Ltd, (myname.mysurname@mycompany.com)</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#ifndef PCL_GPU_CONTAINERS_DEVICE_MEMORY_HPP_</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#define PCL_GPU_CONTAINERS_DEVICE_MEMORY_HPP_</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &lt;pcl/pcl_exports.h&gt;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &lt;pcl/gpu/containers/kernel_containers.h&gt;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">namespace </span>pcl</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">namespace </span>gpu</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    {              </div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html">   55</a></span>&#160;        <span class="keyword">class </span>PCL_EXPORTS <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keyword">public</span>:</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a1715c6703bf020d262f1814245d81049">   59</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a1715c6703bf020d262f1814245d81049">DeviceMemory</a>();</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#abac3328be69fefb938385f06a85086a6">   62</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#abac3328be69fefb938385f06a85086a6">~DeviceMemory</a>();            </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a5a78e31d7d93984afb53e3a8cb21277d">   67</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a5a78e31d7d93984afb53e3a8cb21277d">DeviceMemory</a>(<span class="keywordtype">size_t</span> sizeBytes_arg);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#abeca9cda9090616249b6702ac3b72a6a">   73</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#abeca9cda9090616249b6702ac3b72a6a">DeviceMemory</a>(<span class="keywordtype">void</span> *ptr_arg, <span class="keywordtype">size_t</span> sizeBytes_arg);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a7a75aa409007befdc70b0f4c3cbb9800">   76</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a7a75aa409007befdc70b0f4c3cbb9800">DeviceMemory</a>(<span class="keyword">const</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a>&amp; other_arg);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#aabaa701031e413b93ac832f95bc3ff08">   79</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a>&amp; <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#aabaa701031e413b93ac832f95bc3ff08">operator=</a>(<span class="keyword">const</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a>&amp; other_arg);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">   84</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">create</a>(<span class="keywordtype">size_t</span> sizeBytes_arg);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#abc6efdb6b6a67dec7760509443beffe4">   87</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#abc6efdb6b6a67dec7760509443beffe4">release</a>();</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">   92</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">copyTo</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">   98</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">upload</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *host_ptr_arg, <span class="keywordtype">size_t</span> sizeBytes_arg);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">  103</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">download</a>(<span class="keywordtype">void</span> *host_ptr_arg) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">  108</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">swap</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a>&amp; other_arg);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; T* ptr();</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">const</span> T* ptr() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a58d4e2b1918f182dbb63d63e4c209746">  117</a></span>&#160;            <span class="keyword">template</span> &lt;<span class="keyword">class</span> U&gt; <span class="keyword">operator</span> <a class="code" href="structpcl_1_1gpu_1_1_ptr_sz.html">PtrSz&lt;U&gt;</a>() <span class="keyword">const</span>;            </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;           </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#ade5394dee721d1fe0e51bc0a9ae59e5b">  120</a></span>&#160;            <span class="keywordtype">bool</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#ade5394dee721d1fe0e51bc0a9ae59e5b">empty</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            <span class="keywordtype">size_t</span> sizeBytes() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keyword">private</span>:</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a4c6f2daad1f0df7407d77d74348d2cdb">  126</a></span>&#160;            <span class="keywordtype">void</span> *<a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a4c6f2daad1f0df7407d77d74348d2cdb">data_</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a7b72944f4603719537ff93e1f0fc5c49">  129</a></span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a7b72944f4603719537ff93e1f0fc5c49">sizeBytes_</a>;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory.html#a2d94a24966ea2a7afaebc40b34a5607b">  132</a></span>&#160;            <span class="keywordtype">int</span>* <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a2d94a24966ea2a7afaebc40b34a5607b">refcount_</a>;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        };</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html">  143</a></span>&#160;        <span class="keyword">class </span>PCL_EXPORTS <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keyword">public</span>:</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#aec937e87ebc5d55c51106d3d5cae57e8">  147</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#aec937e87ebc5d55c51106d3d5cae57e8">DeviceMemory2D</a>();</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4360ec5687b7f321e0740b9a2817ad52">  150</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4360ec5687b7f321e0740b9a2817ad52">~DeviceMemory2D</a>();            </div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e6bb28aab480fbad3c8bcd0b44c84da">  156</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e6bb28aab480fbad3c8bcd0b44c84da">DeviceMemory2D</a>(<span class="keywordtype">int</span> rows_arg, <span class="keywordtype">int</span> colsBytes_arg);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a999d25c49cdcb02383e0a05212289e00">  165</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a999d25c49cdcb02383e0a05212289e00">DeviceMemory2D</a>(<span class="keywordtype">int</span> rows_arg, <span class="keywordtype">int</span> colsBytes_arg, <span class="keywordtype">void</span> *data_arg, <span class="keywordtype">size_t</span> step_arg);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae70f381a982307b17e0af3f915b14449">  168</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae70f381a982307b17e0af3f915b14449">DeviceMemory2D</a>(<span class="keyword">const</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a>&amp; other_arg);</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ac5f7ab83f0c64c4055924ddeadc84c72">  171</a></span>&#160;            <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a>&amp; <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ac5f7ab83f0c64c4055924ddeadc84c72">operator=</a>(<span class="keyword">const</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a>&amp; other_arg);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">  177</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">create</a>(<span class="keywordtype">int</span> rows_arg, <span class="keywordtype">int</span> colsBytes_arg);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae81f9c2cf5e6c5f542a58a05b431a30c">  180</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae81f9c2cf5e6c5f542a58a05b431a30c">release</a>();</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">  185</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">copyTo</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">  193</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">upload</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *host_ptr_arg, <span class="keywordtype">size_t</span> host_step_arg, <span class="keywordtype">int</span> rows_arg, <span class="keywordtype">int</span> colsBytes_arg);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">  199</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">download</a>(<span class="keywordtype">void</span> *host_ptr_arg, <span class="keywordtype">size_t</span> host_step_arg) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">  204</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">swap</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a>&amp; other_arg);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;            </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; T* ptr(<span class="keywordtype">int</span> y_arg = 0);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">const</span> T* ptr(<span class="keywordtype">int</span> y_arg = 0) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a6fe9254be3ea932c63099ecdb7c72e67">  217</a></span>&#160;            <span class="keyword">template</span> &lt;<span class="keyword">class</span> U&gt; <span class="keyword">operator</span> <a class="code" href="structpcl_1_1gpu_1_1_ptr_step.html">PtrStep&lt;U&gt;</a>() <span class="keyword">const</span>;            </div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#aca2f9dc134a54709ac9084a6435b6c12">  220</a></span>&#160;            <span class="keyword">template</span> &lt;<span class="keyword">class</span> U&gt; <span class="keyword">operator</span> <a class="code" href="structpcl_1_1gpu_1_1_ptr_step_sz.html">PtrStepSz&lt;U&gt;</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a175782f2282dae717c1e6bafd54336b1">  223</a></span>&#160;            <span class="keywordtype">bool</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a175782f2282dae717c1e6bafd54336b1">empty</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160; </div>
<div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4fc62bd30bd21517dce88ac203d34814">  226</a></span>&#160;            <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4fc62bd30bd21517dce88ac203d34814">colsBytes</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a8f7adab9d87fe92576886591df5a5aa1">  229</a></span>&#160;            <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a8f7adab9d87fe92576886591df5a5aa1">rows</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a526d188921b4d2d5e01a0911395b8b6e">  232</a></span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a526d188921b4d2d5e01a0911395b8b6e">step</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <span class="keyword">private</span>:</div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a84753879e0e03f2a4f0c881c1b0bd5ca">  235</a></span>&#160;            <span class="keywordtype">void</span> *<a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a84753879e0e03f2a4f0c881c1b0bd5ca">data_</a>;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160; </div>
<div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11ba6d5ea4944e55e75f50e36e7a29b5">  238</a></span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11ba6d5ea4944e55e75f50e36e7a29b5">step_</a>;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; </div>
<div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ab02d57cd1477c82b983b566cc5712c46">  241</a></span>&#160;            <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ab02d57cd1477c82b983b566cc5712c46">colsBytes_</a>;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae54f6c352a08a701f34efcd342362b98">  244</a></span>&#160;            <span class="keywordtype">int</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae54f6c352a08a701f34efcd342362b98">rows_</a>;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160; </div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a3f81462b6f096a06875ba96fc94372e5">  247</a></span>&#160;            <span class="keywordtype">int</span>* <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a3f81462b6f096a06875ba96fc94372e5">refcount_</a>;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        };      </div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    }</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="keyword">namespace </span>device</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    {</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        <span class="keyword">using</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html">pcl::gpu::DeviceMemory</a>;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        <span class="keyword">using</span> <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html">pcl::gpu::DeviceMemory2D</a>;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    }</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;}</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; </div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="preprocessor">#include &lt;pcl/gpu/containers/impl/device_memory.hpp&gt;</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; </div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PCL_GPU_CONTAINERS_DEVICE_MEMORY_HPP_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html">pcl::gpu::DeviceMemory2D</a></div><div class="ttdoc">DeviceMemory2D class</div><div class="ttdef"><b>Definition:</b> device_memory.h:144</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a11ba6d5ea4944e55e75f50e36e7a29b5"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11ba6d5ea4944e55e75f50e36e7a29b5">pcl::gpu::DeviceMemory2D::step_</a></div><div class="ttdeci">size_t step_</div><div class="ttdoc">Stride between two consecutive rows in bytes for internal buffer. Step is stored always and everywher...</div><div class="ttdef"><b>Definition:</b> device_memory.h:238</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a11f9cbf4e4809268d52323e6e52a63f3"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">pcl::gpu::DeviceMemory2D::download</a></div><div class="ttdeci">void download(void *host_ptr_arg, size_t host_step_arg) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a175782f2282dae717c1e6bafd54336b1"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a175782f2282dae717c1e6bafd54336b1">pcl::gpu::DeviceMemory2D::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Returns true if unallocated otherwise false.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a17a2b3c9f026bbf7438c01cd905e0003"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">pcl::gpu::DeviceMemory2D::swap</a></div><div class="ttdeci">void swap(DeviceMemory2D &amp;other_arg)</div><div class="ttdoc">Performs swap of data pointed with another device memory.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a3f81462b6f096a06875ba96fc94372e5"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a3f81462b6f096a06875ba96fc94372e5">pcl::gpu::DeviceMemory2D::refcount_</a></div><div class="ttdeci">int * refcount_</div><div class="ttdoc">Pointer to reference counter in CPU memory.</div><div class="ttdef"><b>Definition:</b> device_memory.h:247</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a4360ec5687b7f321e0740b9a2817ad52"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4360ec5687b7f321e0740b9a2817ad52">pcl::gpu::DeviceMemory2D::~DeviceMemory2D</a></div><div class="ttdeci">~DeviceMemory2D()</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a4e03c08aabf9c020cbe3d92d2b3434ab"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">pcl::gpu::DeviceMemory2D::create</a></div><div class="ttdeci">void create(int rows_arg, int colsBytes_arg)</div><div class="ttdoc">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a4e6bb28aab480fbad3c8bcd0b44c84da"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e6bb28aab480fbad3c8bcd0b44c84da">pcl::gpu::DeviceMemory2D::DeviceMemory2D</a></div><div class="ttdeci">DeviceMemory2D(int rows_arg, int colsBytes_arg)</div><div class="ttdoc">Allocates internal buffer in GPU memory</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a4fc62bd30bd21517dce88ac203d34814"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4fc62bd30bd21517dce88ac203d34814">pcl::gpu::DeviceMemory2D::colsBytes</a></div><div class="ttdeci">int colsBytes() const</div><div class="ttdoc">Returns number of bytes in each row.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a526d188921b4d2d5e01a0911395b8b6e"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a526d188921b4d2d5e01a0911395b8b6e">pcl::gpu::DeviceMemory2D::step</a></div><div class="ttdeci">size_t step() const</div><div class="ttdoc">Returns stride between two consecutive rows in bytes for internal buffer. Step is stored always and e...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a84753879e0e03f2a4f0c881c1b0bd5ca"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a84753879e0e03f2a4f0c881c1b0bd5ca">pcl::gpu::DeviceMemory2D::data_</a></div><div class="ttdeci">void * data_</div><div class="ttdoc">Device pointer.</div><div class="ttdef"><b>Definition:</b> device_memory.h:235</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a8f7adab9d87fe92576886591df5a5aa1"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a8f7adab9d87fe92576886591df5a5aa1">pcl::gpu::DeviceMemory2D::rows</a></div><div class="ttdeci">int rows() const</div><div class="ttdoc">Returns number of rows.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a999d25c49cdcb02383e0a05212289e00"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a999d25c49cdcb02383e0a05212289e00">pcl::gpu::DeviceMemory2D::DeviceMemory2D</a></div><div class="ttdeci">DeviceMemory2D(int rows_arg, int colsBytes_arg, void *data_arg, size_t step_arg)</div><div class="ttdoc">Initializes with user allocated buffer. Reference counting is disabled in this case.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_ab02d57cd1477c82b983b566cc5712c46"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#ab02d57cd1477c82b983b566cc5712c46">pcl::gpu::DeviceMemory2D::colsBytes_</a></div><div class="ttdeci">int colsBytes_</div><div class="ttdoc">Width of the buffer in bytes.</div><div class="ttdef"><b>Definition:</b> device_memory.h:241</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_ac5f7ab83f0c64c4055924ddeadc84c72"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#ac5f7ab83f0c64c4055924ddeadc84c72">pcl::gpu::DeviceMemory2D::operator=</a></div><div class="ttdeci">DeviceMemory2D &amp; operator=(const DeviceMemory2D &amp;other_arg)</div><div class="ttdoc">Assigment operator. Just increments reference counter.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_ae54f6c352a08a701f34efcd342362b98"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae54f6c352a08a701f34efcd342362b98">pcl::gpu::DeviceMemory2D::rows_</a></div><div class="ttdeci">int rows_</div><div class="ttdoc">Number of rows.</div><div class="ttdef"><b>Definition:</b> device_memory.h:244</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_ae70f381a982307b17e0af3f915b14449"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae70f381a982307b17e0af3f915b14449">pcl::gpu::DeviceMemory2D::DeviceMemory2D</a></div><div class="ttdeci">DeviceMemory2D(const DeviceMemory2D &amp;other_arg)</div><div class="ttdoc">Copy constructor. Just increments reference counter.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_ae81f9c2cf5e6c5f542a58a05b431a30c"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae81f9c2cf5e6c5f542a58a05b431a30c">pcl::gpu::DeviceMemory2D::release</a></div><div class="ttdeci">void release()</div><div class="ttdoc">Decrements reference counter and releases internal buffer if needed.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_aec937e87ebc5d55c51106d3d5cae57e8"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#aec937e87ebc5d55c51106d3d5cae57e8">pcl::gpu::DeviceMemory2D::DeviceMemory2D</a></div><div class="ttdeci">DeviceMemory2D()</div><div class="ttdoc">Empty constructor.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_af0d12aab6d2bea03fc7dcdd5974d3bf4"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">pcl::gpu::DeviceMemory2D::upload</a></div><div class="ttdeci">void upload(const void *host_ptr_arg, size_t host_step_arg, int rows_arg, int colsBytes_arg)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_af67bb317d0e95c5999927b90071b1164"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">pcl::gpu::DeviceMemory2D::copyTo</a></div><div class="ttdeci">void copyTo(DeviceMemory2D &amp;other) const</div><div class="ttdoc">Performs data copying. If destination size differs it will be reallocated.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html">pcl::gpu::DeviceMemory</a></div><div class="ttdoc">DeviceMemory class</div><div class="ttdef"><b>Definition:</b> device_memory.h:56</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a139fb950f850ab013e4cbd1d8c758b62"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">pcl::gpu::DeviceMemory::create</a></div><div class="ttdeci">void create(size_t sizeBytes_arg)</div><div class="ttdoc">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a1715c6703bf020d262f1814245d81049"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a1715c6703bf020d262f1814245d81049">pcl::gpu::DeviceMemory::DeviceMemory</a></div><div class="ttdeci">DeviceMemory()</div><div class="ttdoc">Empty constructor.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a2d94a24966ea2a7afaebc40b34a5607b"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a2d94a24966ea2a7afaebc40b34a5607b">pcl::gpu::DeviceMemory::refcount_</a></div><div class="ttdeci">int * refcount_</div><div class="ttdoc">Pointer to reference counter in CPU memory.</div><div class="ttdef"><b>Definition:</b> device_memory.h:132</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a4c6f2daad1f0df7407d77d74348d2cdb"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a4c6f2daad1f0df7407d77d74348d2cdb">pcl::gpu::DeviceMemory::data_</a></div><div class="ttdeci">void * data_</div><div class="ttdoc">Device pointer.</div><div class="ttdef"><b>Definition:</b> device_memory.h:126</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a5a6aec629c498c532916994f8188ad61"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">pcl::gpu::DeviceMemory::upload</a></div><div class="ttdeci">void upload(const void *host_ptr_arg, size_t sizeBytes_arg)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a5a78e31d7d93984afb53e3a8cb21277d"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a5a78e31d7d93984afb53e3a8cb21277d">pcl::gpu::DeviceMemory::DeviceMemory</a></div><div class="ttdeci">DeviceMemory(size_t sizeBytes_arg)</div><div class="ttdoc">Allocates internal buffer in GPU memory</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a70dc06ec14d680c4b97f71575ef6a963"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">pcl::gpu::DeviceMemory::swap</a></div><div class="ttdeci">void swap(DeviceMemory &amp;other_arg)</div><div class="ttdoc">Performs swap of data pointed with another device memory.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a7a75aa409007befdc70b0f4c3cbb9800"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a7a75aa409007befdc70b0f4c3cbb9800">pcl::gpu::DeviceMemory::DeviceMemory</a></div><div class="ttdeci">DeviceMemory(const DeviceMemory &amp;other_arg)</div><div class="ttdoc">Copy constructor. Just increments reference counter.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a7b72944f4603719537ff93e1f0fc5c49"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a7b72944f4603719537ff93e1f0fc5c49">pcl::gpu::DeviceMemory::sizeBytes_</a></div><div class="ttdeci">size_t sizeBytes_</div><div class="ttdoc">Allocated size in bytes.</div><div class="ttdef"><b>Definition:</b> device_memory.h:129</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_aabaa701031e413b93ac832f95bc3ff08"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#aabaa701031e413b93ac832f95bc3ff08">pcl::gpu::DeviceMemory::operator=</a></div><div class="ttdeci">DeviceMemory &amp; operator=(const DeviceMemory &amp;other_arg)</div><div class="ttdoc">Assigment operator. Just increments reference counter.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_aac0093c66cf01a571cd16815e1189c84"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">pcl::gpu::DeviceMemory::copyTo</a></div><div class="ttdeci">void copyTo(DeviceMemory &amp;other) const</div><div class="ttdoc">Performs data copying. If destination size differs it will be reallocated.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_abac3328be69fefb938385f06a85086a6"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#abac3328be69fefb938385f06a85086a6">pcl::gpu::DeviceMemory::~DeviceMemory</a></div><div class="ttdeci">~DeviceMemory()</div><div class="ttdoc">Destructor.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_abc6efdb6b6a67dec7760509443beffe4"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#abc6efdb6b6a67dec7760509443beffe4">pcl::gpu::DeviceMemory::release</a></div><div class="ttdeci">void release()</div><div class="ttdoc">Decrements reference counter and releases internal buffer if needed.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_abeca9cda9090616249b6702ac3b72a6a"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#abeca9cda9090616249b6702ac3b72a6a">pcl::gpu::DeviceMemory::DeviceMemory</a></div><div class="ttdeci">DeviceMemory(void *ptr_arg, size_t sizeBytes_arg)</div><div class="ttdoc">Initializes with user allocated buffer. Reference counting is disabled in this case.</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_ad3dde5e26915ca28d8ce521edf211464"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">pcl::gpu::DeviceMemory::download</a></div><div class="ttdeci">void download(void *host_ptr_arg) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_ade5394dee721d1fe0e51bc0a9ae59e5b"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#ade5394dee721d1fe0e51bc0a9ae59e5b">pcl::gpu::DeviceMemory::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Returns true if unallocated otherwise false.</div></div>
<div class="ttc" id="astructpcl_1_1gpu_1_1_ptr_step_html"><div class="ttname"><a href="structpcl_1_1gpu_1_1_ptr_step.html">pcl::gpu::PtrStep</a></div><div class="ttdef"><b>Definition:</b> kernel_containers.h:78</div></div>
<div class="ttc" id="astructpcl_1_1gpu_1_1_ptr_step_sz_html"><div class="ttname"><a href="structpcl_1_1gpu_1_1_ptr_step_sz.html">pcl::gpu::PtrStepSz</a></div><div class="ttdef"><b>Definition:</b> kernel_containers.h:93</div></div>
<div class="ttc" id="astructpcl_1_1gpu_1_1_ptr_sz_html"><div class="ttname"><a href="structpcl_1_1gpu_1_1_ptr_sz.html">pcl::gpu::PtrSz</a></div><div class="ttdef"><b>Definition:</b> kernel_containers.h:70</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_6b3ae6988449b0834e9596fad5d75199.html">gpu</a></li><li class="navelem"><a class="el" href="dir_dcd24c8b03a1a635627c46bb41858b15.html">containers</a></li><li class="navelem"><a class="el" href="dir_e826ef451ea7595e8421b42dc2e323d6.html">include</a></li><li class="navelem"><a class="el" href="dir_c4fc1bcb115cad570170efa6ba494b01.html">pcl</a></li><li class="navelem"><a class="el" href="dir_93c22ca180983c10c19c9dd1dd74f4fb.html">gpu</a></li><li class="navelem"><a class="el" href="dir_b704cca41b4ca7c72f1d82e4f17e5fcb.html">containers</a></li><li class="navelem"><b>device_memory.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
